<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<tr>
	<th>&emsp;</th>
	<th>年份-商品【批次-中间字-规格】</th>
	<th>规格</th>
</tr>
<c:forEach items="${products }" var="product">
	<tr>
	<td><input type="radio" name="productId" value="${product.id }" 
		onclick='selectProduct("${product.id}", "${product.name }")'></td>
	<td>${product.productionyear }-${product.name }【${product.batch }-${product.middleword }-
	${product.amount }${product.unit }/
	<c:if test="${product.middle_amount gt 0 }">
		${product.big_to_middle_amount }${product.middle_unit }/
	</c:if>
	${product.bigunit }】</td>
	<td><input type="radio" disabled="disabled" name="${product.id }-temp-unit" value="0"
		onclick="selectUnit(1)">${product.unit }
	<input type="radio" disabled="disabled" name="${product.id }-temp-unit" value="1"
		onclick="selectUnit(2)">${product.bigunit }
	<c:if test="${product.middle_amount gt 0 }">
		<input type="radio" disabled="disabled" name="${product.id }-temp-unit" value="5"
		onclick="selectUnit(5)">${product.middle_unit }
	</c:if></td>
	</tr>
</c:forEach>